home *** CD-ROM | disk | FTP | other *** search
- Path: irisa.fr!usenet
- From: gmoreau@photon.irisa.fr (Guillaume Moreau)
- Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
- Subject: Re: malloc'ing 1.5MB of memory
- Date: 11 Jan 1996 15:50:20 GMT
- Organization: IRISA, Campus de Beaulieu, 35042 Rennes Cedex, FRANCE
- Distribution: world
- Message-ID: <GMOREAU.96Jan11165020@photon.irisa.fr>
- References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl>
- <4d37ta$4d2@stc06.ctd.ornl.gov>
- NNTP-Posting-Host: photon.irisa.fr
- In-reply-to: forrest@esdhof.esd.ornl.gov's message of 11 Jan 1996 14:47:06 GMT
-
- In article <4d37ta$4d2@stc06.ctd.ornl.gov> forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) writes:
-
-
- |> Try to use the XMS interface (Himem) and disable MS C's heap. With the XMS
- |> interface you're able to allocate up to 15MB.
- |>
- |> Herman
- |>
-
- Herman:
-
- Thanks for the suggestion. This sounds like what I need to do, but how
- do I use XMS? I cannot find any reference to it. Is it another
- library? Do I get it from Chairman Gates?
-
- Nope. What you have to do is use DOS services, ie make an int86() call. I
- don't remember which interrupt is used by XMS, but I can send you some
- sources with XMS access functions. Just send me a mail. You first have
- to check that a XMS driver is present, then you can alloc a memory
- block. Note that there is no direct access to this block (with a pointer), you
- are provided copy functions from/to low memory to/from Xms blocks.
- Another solution is to use a Dos extender (Phar Lap w/ MsC or djgpp).
-
-
-
- One other thing: I still need networking and things to work correctly.
- I'm trying to write directly onto an NFS-mounted disk from this program.
- I'm using FTP's OnNet TCP/IP stack.
-
- and, what is not working?
-
-
- Also, how do I disable MS C's heap after finding out about XMS?
-
- you don't need to, IMHO.
-
-
- Guillaume
-
-
-
- --
- -----------------------------------------------------------------------
- Guillaume Moreau Guillaume.Moreau@irisa.fr
- IRISA, projet Siames ENS Cachan, antenne de Bretagne
- Campus de Beaulieu Campus de Ker Lann
- 35042 Rennes Cedex 35170 Bruz
- Tel: 99.84.74.18 Tel: 99.05.93.00
- Fax: 99.84.71.71 Fax: 99.05.93.29
-
- "If we knew what we were doing, we wouldn't call it research, would we?"
- A. Einstein
- -----------------------------------------------------------------------
-